<extend name="Public/base" />
<block name="content">
<div id="content">
    <div id="content-header">
        <div id="breadcrumb">
            <a href="{:U('Index/index')}" title="首页" class="tip-bottom"><i
                class="icon-home"></i> 首页</a> <a href="#" class="current">{$meta_title}</a>
        </div>
    </div>
    <div class="container-fluid">
        <br/>
        <div class="search-form fr cf">
            <input type="text" id="js_phone" name="phone" class="search-input" value="{:strip_tags(I('phone'))}" maxlength="11" placeholder="请输入要查找的客户电话" style="margin-bottom:0;"><button class="btn btn-info" id="search_button" url="{:U('ServiceSeat/queryCustomer')}"><i id="js_search" class="icon-search icon-white"></i></button>
        </div>
        <div class="row-fluid">
            <div class="span12">
                <div class="widget-box">
                    <div class="widget-content ">
	                           <notempty name="_list">
	                       <table class="table table-bordered table-striped with-check">
	                           <thead>
	                               <tr>
	                                   <th width="5%">序号</th>
	                                   <th width="15%">客户姓名</th>
	                                   <th width="15%">上次拨打时间</th>
	                                   <th width="15%">分配时间</th>
	                                   <th width="40%" class="taskStatus">备注</th>
	                                   <th width="10%">操作</th>
	                               </tr>
	                           </thead>
	                           <tbody>
						            <volist name="_list" id="val">
	                                <tr>
	                                	<td class="taskStatus">{$i}</td>
	                                    <td class="taskStatus">{$val.customer_id|getServiceCustomerName}</td>
	                                	<td class="taskStatus">{$val.call_time|time_format}</td>
	                                	<td class="taskStatus">{$val.create_time|time_format}</td>
	                                    <td class="taskStatus">{$val.remark}</td>
	                                    <td class="taskStatus">
	                                        <a href="{:U('ServiceSeat/queryCustomerDial',array('origin'=>6,'id'=>$val['customer_id']))}" class="btn btn-warning btn-small">拨 打</a>
	                                    </td>
	                                </tr>
	                                </volist>
	                                
	                           </tbody>
	                       </table>
                        	<div class="dataTables_paginate fg-buttonset ui-buttonset fg-buttonset-multi ui-buttonset-multi paging_full_numbers" id="DataTables_Table_0_paginate">
								{$_page}
							</div>
							<else/>
								<center>没有找到数据！</center>
	                        </notempty>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
$(function (){
    //新增跳转页面
    $('#add').click(function(){
        window.location.href="{:U('Base/addSms')}";
    });
    $("#js_search").click(function(){
    	if(/^(13[\d]{9}|15[\d]{9}|18[\d]{9})$/.test($('#js_phone').val()) == false){
			tke_alert('电话号错误', 'alert-error', 2000);
            return false;
        }
    });
});
//导航高亮
highlight_subnav("{:U('ServiceSeat/queryCustomer')}");
</script>
</block>